home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / u_man / cat1 / tail.z / tail
Encoding:
Text File  |  2002-10-03  |  5.3 KB  |  133 lines

  1.  
  2.  
  3.  
  4. ttttaaaaiiiillll((((1111))))                                                                ttttaaaaiiiillll((((1111))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      _tttt_aaaa_iiii_llll - deliver the last part of a file
  10.  
  11. SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.      _tttt_aaaa_iiii_llll [ _----_ffff ] [ _----_cccc _n_u_m_b_e_r | _----_nnnn _n_u_m_b_e_r ] [ _f_i_l_e ]
  13.      _tttt_aaaa_iiii_llll [ _++++____ _n_u_m_b_e_r _llll_bbbb_cccc_rrrr ] [ _f_i_l_e ]
  14.      _tttt_aaaa_iiii_llll [ _----_llll_bbbb_cccc_rrrr ] [ _f_i_l_e ]
  15.      _tttt_aaaa_iiii_llll [ _++++____ _n_u_m_b_e_r _llll_bbbb_cccc_ffff ] [ _f_i_l_e ]
  16.      _tttt_aaaa_iiii_llll [ _----_llll_bbbb_cccc_ffff ] [ _f_i_l_e ]
  17.  
  18. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  19.      _tttt_aaaa_iiii_llll copies the named file to the standard output beginning at a
  20.      designated place.  If no file is named, the standard input is used.
  21.  
  22.      Copying begins at distance _++++_n_u_m_b_e_r from the beginning, or _----_n_u_m_b_e_r from
  23.      the end of the input (if _n_u_m_b_e_r is null, the value 10 is assumed).  If
  24.      the _----_cccc or _----_nnnn options are used, _n_u_m_b_e_r is assumed to be negative unless a
  25.      _++++ sign is prepended.  _N_u_m_b_e_r is counted in units of lines, blocks, or
  26.      characters, according to the appended/prepended option _llll/_----_nnnn, _bbbb, or _cccc/_----_cccc.
  27.      When no units are specified, counting is by lines.  _tttt_aaaa_iiii_llll processes
  28.      supplementary code set characters according to the locale specified in
  29.      the _LLLL_CCCC______CCCC_TTTT_YYYY_PPPP_EEEE environment variable [see _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn(5)], except that
  30.      multibyte characters may not be displayed correctly when the _----_bbbb and _----_cccc
  31.      options are specified.
  32.  
  33.      With the _----_ffff (follow) option, if the input file is not a pipe, the program
  34.      will not terminate after the line of the input file has been copied, but
  35.      will enter an endless loop, wherein it sleeps for a second and then
  36.      attempts to read and copy further records from the input file.  Thus it
  37.      may be used to monitor the growth of a file that is being written by some
  38.      other process.  For example, the command:
  39.  
  40.           _tttt_aaaa_iiii_llll _----_ffff _ffff_rrrr_eeee_dddd
  41.  
  42.      will print the last ten lines of the file _ffff_rrrr_eeee_dddd, followed by any lines
  43.      that are appended to _ffff_rrrr_eeee_dddd between the time _tttt_aaaa_iiii_llll is initiated and killed.
  44.      As another example, the command:
  45.  
  46.           _tttt_aaaa_iiii_llll _----_1111_5555_cccc_ffff _ffff_rrrr_eeee_dddd
  47.  
  48.      will print the last 15 characters of the file _ffff_rrrr_eeee_dddd, followed by any lines
  49.      that are appended to _ffff_rrrr_eeee_dddd between the time _tttt_aaaa_iiii_llll is initiated and killed.
  50.  
  51.      The _rrrr option copies lines from the specified starting point relative to
  52.      the end of the file (regardless of the sign) in reverse order.  The
  53.      default for _rrrr is to print the entire file in reverse order.
  54.  
  55.      The _rrrr and _ffff options are mutually exclusive.
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70. ttttaaaaiiiillll((((1111))))                                                                ttttaaaaiiiillll((((1111))))
  71.  
  72.  
  73.  
  74. FILES
  75.      _////_uuuu_ssss_rrrr_////_llll_iiii_bbbb_////_llll_oooo_cccc_aaaa_llll_eeee_////_l_o_c_a_l_e_////_LLLL_CCCC______MMMM_EEEE_SSSS_SSSS_AAAA_GGGG_EEEE_SSSS_////_uuuu_xxxx_cccc_oooo_rrrr_eeee_...._aaaa_bbbb_iiii
  76.           language-specific message file [See _LLLL_AAAA_NNNN_GGGG on _eeee_nnnn_vvvv_iiii_rrrr_oooo_nnnn (5).]
  77.  
  78. SSSSEEEEEEEE AAAALLLLSSSSOOOO
  79.      _cccc_aaaa_tttt(1), _hhhh_eeee_aaaa_dddd(1), _mmmm_oooo_rrrr_eeee(1), _pppp_gggg(1), _tttt_aaaa_iiii_llll(1), _dddd_dddd(1M)
  80.  
  81. NNNNOOOOTTTTEEEESSSS
  82.      Tails relative to the end of the file are stored in a buffer, and thus
  83.      are limited in length.  Various kinds of anomalous behavior may happen
  84.      with character special files.  The _tttt_aaaa_iiii_llll command will only tail the last
  85.      256 Kbytes of a file regardless of its line count.
  86.  
  87.  
  88.  
  89.  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.                                                                         PPPPaaaaggggeeee 2222
  130.  
  131.  
  132.  
  133.